TypeScriptのObject型, {}型
{}型と同じ
若干違うらしい
boolean, number, string, Symbol, Objectを含む
undefined, nullは除く
table:object
Object, {} object
Boolen ○
Null
Undefined
Number ○
String ○
Symbol ○
() => {} ○ ○
[] ○ ○
{} ○ ○
{a: any} ○ ○
Object、object, {}のちがい
公式がObjectの使用を非推奨にしている
❌ Don’t ever use the types Number, String, Boolean, Symbol, or Object These types refer to non-primitive boxed objects that are almost never used appropriately in JavaScript code.